﻿using System.Collections.Generic;
using System.Net.DnsToolkit.Packet;

namespace System.Net.DnsToolkit.Packet.Busy {

    /// <summary>
    /// <pre>
    /// +---------------------+
    /// |        Header       |
    /// +---------------------+
    /// |       Question      | the question for the name server
    /// +---------------------+
    /// |        Answer       | RRs answering the question
    /// +---------------------+
    /// |      Authority      | RRs pointing toward an authority
    /// +---------------------+
    /// |      Additional     | RRs holding additional information
    /// +---------------------+
    /// </pre>
    /// </summary>
    public class Message : IMessage {

        public IHeader Header { get; set; }
        public List<IQuestion> Questions  { get; set; }
        public List<IRR> Answers { get; set; }
        public List<IRR> Authorities { get; set; }
        public List<IRR> Additionals { get; set; }

        public Message() {

             Header = new Header();
             Questions = new List<IQuestion>();
             Answers = new List<IRR>();
             Authorities = new List<IRR>();
             Additionals = new List<IRR>();

        }

    }
}
